import 'package:nyh_motorcade_app/entity/transaction_flow_details_entity.dart';

transactionFlowDetailsEntityFromJson(TransactionFlowDetailsEntity data, Map<String, dynamic> json) {
	if (json['id'] != null) {
		data.id = json['id'].toString();
	}
	if (json['orderNumber'] != null) {
		data.orderNumber = json['orderNumber'].toString();
	}
	if (json['authorizationCodeId'] != null) {
		data.authorizationCodeId = json['authorizationCodeId'].toString();
	}
	if (json['orderAmount'] != null) {
		data.orderAmount = json['orderAmount'] is String
				? double.tryParse(json['orderAmount'])
				: json['orderAmount'].toDouble();
	}
	if (json['orderQuantity'] != null) {
		data.orderQuantity = json['orderQuantity'] is String
				? double.tryParse(json['orderQuantity'])
				: json['orderQuantity'].toDouble();
	}
	if (json['price'] != null) {
		data.price = json['price'] is String
				? double.tryParse(json['price'])
				: json['price'].toDouble();
	}
	if (json['stationId'] != null) {
		data.stationId = json['stationId'] is String
				? int.tryParse(json['stationId'])
				: json['stationId'].toInt();
	}
	if (json['stationName'] != null) {
		data.stationName = json['stationName'].toString();
	}
	if (json['longitude'] != null) {
		data.longitude = json['longitude'].toString();
	}
	if (json['latitude'] != null) {
		data.latitude = json['latitude'].toString();
	}
	if (json['oilName'] != null) {
		data.oilName = json['oilName'].toString();
	}
	if (json['oilEngineNo'] != null) {
		data.oilEngineNo = json['oilEngineNo'].toString();
	}
	if (json['greaseGunNo'] != null) {
		data.greaseGunNo = json['greaseGunNo'].toString();
	}
	if (json['greaseGunCode'] != null) {
		data.greaseGunCode = json['greaseGunCode'].toString();
	}
	if (json['driverId'] != null) {
		data.driverId = json['driverId'] is String
				? int.tryParse(json['driverId'])
				: json['driverId'].toInt();
	}
	if (json['driverName'] != null) {
		data.driverName = json['driverName'].toString();
	}
	if (json['vehicleNumber'] != null) {
		data.vehicleNumber = json['vehicleNumber'].toString();
	}
	if (json['vehicleImage'] != null) {
		data.vehicleImage = json['vehicleImage'].toString();
	}
	if (json['companyId'] != null) {
		data.companyId = json['companyId'] is String
				? int.tryParse(json['companyId'])
				: json['companyId'].toInt();
	}
	if (json['companyName'] != null) {
		data.companyName = json['companyName'].toString();
	}
	if (json['customersId'] != null) {
		data.customersId = json['customersId'] is String
				? int.tryParse(json['customersId'])
				: json['customersId'].toInt();
	}
	if (json['customersName'] != null) {
		data.customersName = json['customersName'].toString();
	}
	if (json['motorcadeName'] != null) {
		data.motorcadeName = json['motorcadeName'].toString();
	}
	if (json['createTime'] != null) {
		data.createTime = json['createTime'].toString();
	}
	if (json['operatorId'] != null) {
		data.operatorId = json['operatorId'] is String
				? int.tryParse(json['operatorId'])
				: json['operatorId'].toInt();
	}
	if (json['operator'] != null) {
		data.operator = json['operator'].toString();
	}
	if (json['operatorPhone'] != null) {
		data.operatorPhone = json['operatorPhone'].toString();
	}
	if (json['hasEvaluation'] != null) {
		data.hasEvaluation = json['hasEvaluation'];
	}
	if (json['stationAddress'] != null) {
		data.stationAddress = json['stationAddress'].toString();
	}
	if (json['stationAddressDetail'] != null) {
		data.stationAddressDetail = json['stationAddressDetail'].toString();
	}
	if (json['tradingTime'] != null) {
		data.tradingTime = json['tradingTime'].toString();
	}
	if (json['vehicleMileage'] != null) {
		data.vehicleMileage = json['vehicleMileage'] is String
				? double.tryParse(json['vehicleMileage'])
				: json['vehicleMileage'].toDouble();
	}
	if (json['gunScreenImage'] != null) {
		data.gunScreenImage = json['gunScreenImage'].toString();
	}
	if (json['joinInSmallTicketImage'] != null) {
		data.joinInSmallTicketImage = json['joinInSmallTicketImage'].toString();
	}
	if (json['vehicleMileageImage'] != null) {
		data.vehicleMileageImage = json['vehicleMileageImage'].toString();
	}
	if (json['signatureImage'] != null) {
		data.signatureImage = json['signatureImage'].toString();
	}
	if (json['smallTicketImage'] != null) {
		data.smallTicketImage = json['smallTicketImage'].toString();
	}
	if (json['oilEnginePrice'] != null) {
		data.oilEnginePrice = json['oilEnginePrice'] is String
				? double.tryParse(json['oilEnginePrice'])
				: json['oilEnginePrice'].toDouble();
	}
	if (json['driverPhone'] != null) {
		data.driverPhone = json['driverPhone'].toString();
	}
	if (json['cardNumber'] != null) {
		data.cardNumber = json['cardNumber'].toString();
	}
	if (json['tradingSerialNumber'] != null) {
		data.tradingSerialNumber = json['tradingSerialNumber'].toString();
	}
	if (json['orderType'] != null) {
		data.orderType = json['orderType'] is String
				? int.tryParse(json['orderType'])
				: json['orderType'].toInt();
	}
	if (json['cardBalance'] != null) {
		data.cardBalance = json['cardBalance'] is String
				? double.tryParse(json['cardBalance'])
				: json['cardBalance'].toDouble();
	}
	if (json['ifDisplayPrice'] != null) {
		data.ifDisplayPrice = json['ifDisplayPrice'];
	}
	if (json['ifDisplayDedutionBalance'] != null) {
		data.ifDisplayDedutionBalance = json['ifDisplayDedutionBalance'];
	}
	if (json['contactsPhone'] != null) {
		data.contactsPhone = json['contactsPhone'].toString();
	}
	if (json['valid'] != null) {
		data.valid = json['valid'] is String
				? int.tryParse(json['valid'])
				: json['valid'].toInt();
	}
	if (json['validOperatorName'] != null) {
		data.validOperatorName = json['validOperatorName'].toString();
	}
	if (json['validTime'] != null) {
		data.validTime = json['validTime'].toString();
	}
	return data;
}

Map<String, dynamic> transactionFlowDetailsEntityToJson(TransactionFlowDetailsEntity entity) {
	final Map<String, dynamic> data = new Map<String, dynamic>();
	data['id'] = entity.id;
	data['orderNumber'] = entity.orderNumber;
	data['authorizationCodeId'] = entity.authorizationCodeId;
	data['orderAmount'] = entity.orderAmount;
	data['orderQuantity'] = entity.orderQuantity;
	data['price'] = entity.price;
	data['stationId'] = entity.stationId;
	data['stationName'] = entity.stationName;
	data['longitude'] = entity.longitude;
	data['latitude'] = entity.latitude;
	data['oilName'] = entity.oilName;
	data['oilEngineNo'] = entity.oilEngineNo;
	data['greaseGunNo'] = entity.greaseGunNo;
	data['greaseGunCode'] = entity.greaseGunCode;
	data['driverId'] = entity.driverId;
	data['driverName'] = entity.driverName;
	data['vehicleNumber'] = entity.vehicleNumber;
	data['vehicleImage'] = entity.vehicleImage;
	data['companyId'] = entity.companyId;
	data['companyName'] = entity.companyName;
	data['customersId'] = entity.customersId;
	data['customersName'] = entity.customersName;
	data['motorcadeName'] = entity.motorcadeName;
	data['createTime'] = entity.createTime;
	data['operatorId'] = entity.operatorId;
	data['operator'] = entity.operator;
	data['operatorPhone'] = entity.operatorPhone;
	data['hasEvaluation'] = entity.hasEvaluation;
	data['stationAddress'] = entity.stationAddress;
	data['stationAddressDetail'] = entity.stationAddressDetail;
	data['tradingTime'] = entity.tradingTime;
	data['vehicleMileage'] = entity.vehicleMileage;
	data['gunScreenImage'] = entity.gunScreenImage;
	data['joinInSmallTicketImage'] = entity.joinInSmallTicketImage;
	data['vehicleMileageImage'] = entity.vehicleMileageImage;
	data['signatureImage'] = entity.signatureImage;
	data['smallTicketImage'] = entity.smallTicketImage;
	data['oilEnginePrice'] = entity.oilEnginePrice;
	data['driverPhone'] = entity.driverPhone;
	data['cardNumber'] = entity.cardNumber;
	data['tradingSerialNumber'] = entity.tradingSerialNumber;
	data['orderType'] = entity.orderType;
	data['cardBalance'] = entity.cardBalance;
	data['ifDisplayPrice'] = entity.ifDisplayPrice;
	data['ifDisplayDedutionBalance'] = entity.ifDisplayDedutionBalance;
	data['contactsPhone'] = entity.contactsPhone;
	data['valid'] = entity.valid;
	data['validOperatorName'] = entity.validOperatorName;
	data['validTime'] = entity.validTime;
	return data;
}